package forms

// 注册
type RegisterUserForm struct {
	Mobile   string `form:"mobile" json:"mobile" xml:"mobile" binding:"required"`
	Password string `form:"password" json:"password" xml:"password" binding:"required"`
	NickName string `form:"nickname" json:"nickname" xml:"nickname" binding:"required"`
}

// 用户列表
type UserListForm struct {
	Page  int `form:"page" json:"page" xml:"page" binding:"required"`
	Limit int `form:"limit" json:"limit" xml:"limit" binding:"required"`
}

// 登录
type LoginUserForm struct {
	Mobile    string `form:"mobile" json:"mobile" xml:"mobile" binding:"required"`
	Password  string `form:"password" json:"password" xml:"password" binding:"required"`
	CaptchaId string `form:"captcha_id" json:"captcha_id" xml:"captcha_id" binding:"required"`
	Captcha   string `form:"captcha" json:"captcha" xml:"captcha" binding:"required"`
}

// 修改用户信息
type UpdateUserInfoForm struct {
	Id       int    `form:"id" json:"id" xml:"id" binding:"required"`
	Mobile   string `form:"mobile" json:"mobile" xml:"mobile" binding:"required"`
	Password string `form:"password" json:"password" xml:"password" binding:"required"`
	NickName string `form:"nickname" json:"nickname" xml:"nickname" binding:"required"`
	BirthDay string `form:"birth_day" json:"birth_day" xml:"birth_day" binding:"required"`
	Sex      int    `form:"sex" json:"sex" xml:"sex" binding:"required"`
	Age      int    `form:"age" json:"age" xml:"age" binding:"required"`
}
